const sequelize = require("../db");
const { DataTypes } = require("sequelize");

const Banner = sequelize.define("Banner", {
    midImg: {
        type: DataTypes.STRING,
        allowNull: false
    },
    bigImg: {
        type: DataTypes.STRING,
        allowNull: false
    },
    title: {
        type: DataTypes.STRING,
        allowNull: false
    },
    description: {
        type: DataTypes.STRING,
        allowNull: false
    },
}, {
    freezeTableName: true,
    createdAt: false,
    updatedAt: false
});

module.exports = Banner;
